<template>
  <view class="page-container">
    <web-view :src="h5Url"></web-view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      h5Url: ''
    }
  },
  
  onLoad() {
    const app = getApp();
    const basinCode = app.globalData.basinCode;
    
    // 构建 H5 页面地址
    this.h5Url = `https://ws.waterism.tech:8444/#/pages/rainfall/measured?basinCode=${basinCode}`;
    
    console.log('雨情实测页面加载:', this.h5Url);
  }
}
</script>

<style scoped>
.page-container {
  width: 100%;
  height: 100vh;
}
</style>
